<div class="mod">
                <div class="mod-bread"><a href="#">Trang chủ </a> > <a href="#">Dự án</a> > <a href="#">Tư vấn</a></div>
            <div class="pro-tit line-dot">
                <h1><?php echo $model->name ?> <b class="social-top">
                   <a href="#"><img src="<?php echo Yii::app()->request->baseUrl; ?>/themes/bjoco/images/soc_01.png" /></a>
                   <a href="#"><img src="<?php echo Yii::app()->request->baseUrl; ?>/themes/bjoco/images/soc_03.png" /></a>
                   <a href="#"><img src="<?php echo Yii::app()->request->baseUrl; ?>/themes/bjoco/images/soc_05.png" /></a>
                   <a href="#"><img src="<?php echo Yii::app()->request->baseUrl; ?>/themes/bjoco/images/soc_07.png" /></a>
                </b>
                </h1>
                <?php if ( Yii::app()->getModule('job')->getTestIdBidjob($model) == true):  ?>
                <span id ="bid-job"><a href="<?php echo 'index.php?r=job/bid&id='.$model->id; ?>">
                    <input type="button" value="Tham gia dự án" /></a></span>
                <?php elseif($model->user_id == Yii::app()->user->id): ?>
                <?php if($model->status != -1): ?>
                <span id ="bid-job"><a href="<?php echo Yii::app()->createUrl('job/create/update',array('id'=>$model->id)); ?>">
                    <input type="button" value="Chỉnh sửa dự án" /></a></span>
                <?php else: ?>
                <span id ="bid-job"><a href="<?php echo Yii::app()->createUrl('job/create/upgrade',array('id'=>$model->id)); ?>">
                    <input type="button" value="Nâng cấp dự án" /></a></span>
                <?php endif; ?>
            <?php elseif($model->id_winner == Yii::app()->user->id && $model->status == 4 && $model->user_id != $model->id_winner): ?>
                <span id ="bid-job"><a href="">
                    <?php $this->widget('ext.loading.LoadingWidget'); ?>
                    <?php  
                    $bid = Yii::app()->getModule('job')->getBidWinner($model);
                    echo CHtml::ajaxButton("Kết thúc dự án",
                              Yii::app()->createUrl('/job/bid/finish',array('id'=>$bid->id,'ra'=>md5($model->name))), 
                              array(
                                'success'=>"js:function(data){ $('#bid-job').html(data);
                                  Loading.hide();
                                 }",
                                'beforeSend'=>'js:function(){ Loading.show(); }',
                                ),
                              array()
                              ); ?></a></span>
            <?php endif; ?>
            </div>
            <div class="pro-stat">
                <p>Số người tham gia: <b><?php echo count($model->bidjobs); ?></b> | Giá trung bình:<b>15 triệu</b><br />Mã số dự án:<b>1234</b><br />Loại dự án: <b>cố định</b><br />Khoảng tài chính: <b><?php echo $model->budget->minmoney.' '.$model->budget->currency->currency; ?></b>
                    <p><span>Thời gian còn lại: <b><?php echo Yii::app()->getModule('job')->time_diff(date("Y-m-d H:i:s"),$model->timeend);?></b></span>
            </div>
            <div class="pro-detail">
                <div class="descr">
                        <h1>Mô tả:</h1>
                    <p> <?php echo $model->jobdesc; ?></p>
                </div>
                <div class="creator">
                <h1>Người tạo</h1>
                <?php $this->widget('user.components.AvatarWidget',array('id'=>$model->user->id)); ?>
        yêu cầu kĩ năng: <b><?php
        $skill ='';
        foreach ( $model->jobSkills as $value ){
            $skill = $skill.','.$value->skill->name;
        }
        echo substr($skill,1);
      ?></b>
                </div>
            </div>
            <div class="clr"></div>
        </div>